import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useTextContent = defineStore('textContent', () => {
  const textContent = ref('')
  const setTextContent = (content: string) => {
    textContent.value = content
  }
  const getTextContent = () => {
    return textContent.value
  }
  return { textContent, setTextContent, getTextContent }
})

// export const useprocess = defineStore('textContent', () => {
//   const textContent = ref('')
//   const setTextContent = (content: string) => {
//     textContent.value = content
//   }
//   const getTextContent = () => {
//     return textContent.value
//   }
//   return { textContent, setTextContent, getTextContent }
// })

